<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
class Barista extends Model
{
	//指定表名
	protected $table='barista';
	//指定id
	protected $primaryKey ='id';
	//批量赋值

	public function info(){
		return $this->hasOne('App\Users','id','user_id');
	}
   
}
